﻿#include "CmdPolarCoordinateGraphExportMarkerData.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphExportMarkerData::CmdPolarCoordinateGraphExportMarkerData()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphExportMarkerData::~CmdPolarCoordinateGraphExportMarkerData()
    {
    }

    bool CmdPolarCoordinateGraphExportMarkerData::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphExportMarkerData(m_mainWindowId, m_fileName);
        return true;
    }

    void CmdPolarCoordinateGraphExportMarkerData::undo()
    {
    }

    void CmdPolarCoordinateGraphExportMarkerData::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphExportMarkerData::setPolarCoordinateGraphExportMarkerData(int mainWindowId, QString fileName)
    {
        m_mainWindowId = mainWindowId;
        m_fileName = fileName;
    }

} // namespace PostCommand
